﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: PresentEntity.cs
// 修改时间：2020-9-8 10:40:07
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Present 的实体类.
	/// </summary>
	[Table("Present")]
	public partial class PresentEntity
	{
		#region Properties
		private int? _presentID = 0;
		/// <summary>
		/// 礼品编号(主键)
		/// </summary>
		[Column("PresentID",TypeName="int")]
		[Key]
		public int? PresentID
		{
			get {return _presentID;}
			set {_presentID = value;}
		}
		
		private System.String _presentName = string.Empty;
		/// <summary>
		/// 礼品名称
		/// </summary>
		[Column("PresentName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PresentName
		{
			get {return _presentName;}
			set {_presentName = value;}
		}
		
		private System.String _presentPic = string.Empty;
		/// <summary>
		/// 礼品图片
		/// </summary>
		[Column("PresentPic",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PresentPic
		{
			get {return _presentPic;}
			set {_presentPic = value;}
		}
		
		private System.String _unit = string.Empty;
		/// <summary>
		/// 礼品单位
		/// </summary>
		[Column("Unit",TypeName="nvarchar(20)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Unit
		{
			get {return _unit;}
			set {_unit = value;}
		}
		
		private System.String _presentNum = string.Empty;
		/// <summary>
		/// 礼品数量
		/// </summary>
		[Column("PresentNum",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PresentNum
		{
			get {return _presentNum;}
			set {_presentNum = value;}
		}
		
		private int? _serviceTermUnit = 0;
		/// <summary>
		/// 单位
		/// </summary>
		[Column("ServiceTermUnit",TypeName="int")]
		public int? ServiceTermUnit
		{
			get {return _serviceTermUnit;}
			set {_serviceTermUnit = value;}
		}
		
		private int? _serviceTerm = 0;
		/// <summary>
		/// 服务期限
		/// </summary>
		[Column("ServiceTerm",TypeName="int")]
		public int? ServiceTerm
		{
			get {return _serviceTerm;}
			set {_serviceTerm = value;}
		}
		
		private decimal? _price = 0;
		/// <summary>
		/// 价格
		/// </summary>
		[Column("Price",TypeName="money")]
		public decimal? Price
		{
			get {return _price;}
			set {_price = value;}
		}
		
		private decimal? _price_Market = 0;
		/// <summary>
		/// 市场价
		/// </summary>
		[Column("Price_Market",TypeName="money")]
		public decimal? Price_Market
		{
			get {return _price_Market;}
			set {_price_Market = value;}
		}
		
		private double? _weight = 0.0f;
		/// <summary>
		/// 重量
		/// </summary>
		[Column("Weight",TypeName="float")]
		public double? Weight
		{
			get {return _weight;}
			set {_weight = value;}
		}
		
		private int? _stocks = 0;
		/// <summary>
		/// 库存
		/// </summary>
		[Column("Stocks",TypeName="int")]
		public int? Stocks
		{
			get {return _stocks;}
			set {_stocks = value;}
		}
		
		private int? _stocksProject = 0;
		/// <summary>
		/// 库存计算方式
		/// </summary>
		[Column("StocksProject",TypeName="int")]
		public int? StocksProject
		{
			get {return _stocksProject;}
			set {_stocksProject = value;}
		}
		
		private int? _orderNum = 0;
		/// <summary>
		/// 订购数量
		/// </summary>
		[Column("OrderNum",TypeName="int")]
		public int? OrderNum
		{
			get {return _orderNum;}
			set {_orderNum = value;}
		}
		
		private int? _alarmNum = 0;
		/// <summary>
		/// 警报数量
		/// </summary>
		[Column("AlarmNum",TypeName="int")]
		public int? AlarmNum
		{
			get {return _alarmNum;}
			set {_alarmNum = value;}
		}
		
		private int? _productCharacter = 0;
		/// <summary>
		/// 礼品类型
		/// </summary>
		[Column("ProductCharacter",TypeName="int")]
		public int? ProductCharacter
		{
			get {return _productCharacter;}
			set {_productCharacter = value;}
		}
		
		private System.String _downloadUrl = string.Empty;
		/// <summary>
		/// 下载地址
		/// </summary>
		[Column("DownloadUrl",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String DownloadUrl
		{
			get {return _downloadUrl;}
			set {_downloadUrl = value;}
		}
		
		private System.String _remark = string.Empty;
		/// <summary>
		/// 下载说明
		/// </summary>
		[Column("Remark",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Remark
		{
			get {return _remark;}
			set {_remark = value;}
		}
		
		private System.String _presentThumb = string.Empty;
		/// <summary>
		/// 缩略图
		/// </summary>
		[Column("PresentThumb",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PresentThumb
		{
			get {return _presentThumb;}
			set {_presentThumb = value;}
		}
		
		private System.String _presentIntro = string.Empty;
		/// <summary>
		/// 简单介绍
		/// </summary>
		[Column("PresentIntro",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PresentIntro
		{
			get {return _presentIntro;}
			set {_presentIntro = value;}
		}
		
		private System.String _presentExplain = string.Empty;
		/// <summary>
		/// 详细介绍
		/// </summary>
		[Column("PresentExplain",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PresentExplain
		{
			get {return _presentExplain;}
			set {_presentExplain = value;}
		}
		
		#endregion
	}
}
